package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.Category;

import java.util.List;

/**
 * Create by lisy on Qingdao
 **/
public interface ICategoryService {

    ServerResponse addCategoryService(String categoryName, int parentId);

    ServerResponse setCategoryNameService(int categoryId, String categoryName);

    ServerResponse<List<Category>> getChildrenParallelCategoryService(int categoryId);

    ServerResponse selectCategoryAndChildrenById(Integer categoryId);
}
